package com.mvc.mapper;

import com.mvc.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName UserMapper
 * @Description TODO
 * @Author Roc
 * @Date 2021/11/26 22:52
 * @Version 1.0
 **/

public interface UserMapper {

    /**
     * @MethodName listSearch 查询
     * @Description TODO
     * @Param startRow 起始行
     * @Param limit   一页多少条
     * @Return java.util.List<com.mvc.entity.User>
     * @Author king
     * @Date 2021/11/27 13:23
     **/
    List<User> listSearch(@Param(value = "startRow") Integer startRow, @Param(value = "limit") Integer limit,
                          @Param(value = "id") Integer id, @Param(value = "uname") String uname, @Param(value = "status") Integer status);

/**
 * @MethodName getCount
 * @Description TODO
 * @Param uname
 * @Param uid
 * @Return java.lang.Integer
 * @Author king
 * @Date 2021/11/27 16:36
 **/
    Integer getCount(@Param(value = "id") Integer id, @Param(value = "uname") String uname, @Param(value = "status") Integer status);

    /**
     * @MethodName insert   新增
     * @Description TODO
 * @Param User
     * @Return java.lang.Integer
     * @Author king
     * @Date 2021/11/27 13:26
     **/
    Integer insert(User User);

    /**
     * @MethodName update   修改
     * @Description TODO
     * @Param User
     * @Return java.lang.Integer
     * @Author king
     * @Date 2021/11/27 13:25
     **/
    Integer update(@Param(value = "id") Integer id, @Param(value = "status") Integer status);

    /**
     * @MethodName del    删除
     * @Description TODO
     * @Param id
     * @Return java.lang.Integer
     * @Author king
     * @Date 2021/11/27 13:25
     **/
    Integer del(@Param(value = "id") Integer id);
}

